<!--  -->
<template>
  <div class="">
    <ze-nav-bar :left-arrow="true" :home="true" :search="true" :title="processName" @nav-search="tabSearch" />
    <div class="over-project">
      <div class="over-select">
        <uni-data-select v-model="project" :clear="false" :localdata="range" @change="change" />
      </div>
      <div class="over-img">
        <img src="../../../../static/project/add.png" alt="" @click="addMoudle" />
      </div>
    </div>
    <div v-for="(item,index) in data" :key="index" class="moudle-card">
      <div class="moudle-item">
        <div class="item">
          <div class="title">
            {{ item.title }}
          </div>
          <div class="logo">
            <img src="@/static/project/eight.png" alt="" />
            <img src="@/static/project/five.png" alt="" />
          </div>
        </div>
        <div v-for="child in item.children" :key="child.id" class="moudle-item">
          <div class="item">
            <div>{{ child.itemtext }}</div>
            <div class="logo">
              <img src="@/static/project/eight.png" alt="" />
              <img src="@/static/project/five.png" alt="" />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import ZeNavBar from '@/components/ze-nav-bar/index.vue'
export default {
  components: {
    ZeNavBar,
  },
  data() {
    // 这里存放数据
    return {
      processName: '维护模块',
      range: [
        { value: 0, text: '市政信息升级管理平台' },
        { value: 1, text: '五图河APP' },
        { value: 2, text: '中恩OA系统' },
      ],
      data: [{ title: '道路档案', children: [{ itemtext: '道路档案-卡片', id: 1 }, { itemtext: '道路档案-移交资料', id: 2 }, { itemtext: '道路档案-结构维护', id: 3 }] },
        { title: '道路养护', children: [{ itemtext: '道路养护-保护区管理', id: 1 }, { itemtext: '道路养护-维护项目', id: 2 }, { itemtext: '道路养护-维护项目', id: 3 }] }],
    }
  },
  computed: {},
  watch: {},
  created() {

  },
  mounted() {

  },
  activated() {},
  methods: {
    addMoudle() {
      uni.navigateTo({
        url: '/pages/index/tabs/demand/moudle-form',
      })
    },
    tabSearch() {
      console.log('search')
    },
  },
}
</script>
<style lang="scss" scoped>
  .over-project{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 93%;
    margin: 0 auto;
    .over-select{
      width: 80px;
    }
    .over-img{
      img{
        width:20px;
        height:20px;
      }
    }
  }

  .moudle-card{
    width: 316px;
    height: 161px;
    margin: 0 auto;
    padding:15px 10px;
    // background-color:pink;
    .moudle-item{
      font-size: 14px;
      color: #333333;
      line-height: 14px;
      margin-bottom:25px;
      .item{
        display:flex;
        justify-content:space-between;
        margin-bottom:25px;
        .title{
          font-weight: bold;
          color: #333333;
        }
        .logo{
        display: flex;
        align-items: center;
              van-icon{
                color:#739ECA;
              }
        img{
          width:20px;
          height:20px;
              }
      }
      }

    }
   }
</style>
